<?php

namespace mpend\modules\home\models;

use Yii;

/**
 * 首页默认面板信息
 *
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class DashboardLogic extends \common\logics\DashboardLogic {

    /**
     * @var array top pages
     */
    public $menus = [];

    /**
     * @var array top pages
     */
    public $recommends = [];

    /**
     * Set Dual column display panel
     * @inheritdoc
     */
    protected function setMenus() {
        $model = new MenuChannel();
        return $model->search();
    }

    /**
     * Set top pages
     * @inheritdoc
     */
    protected function setRecommends() {
        $model = new RecommendSearch();
        return $model->search();
    }

}
